const state = {
  windows: [{
    WindowId: null,
    posX: 0,
    posY: 0,
    width: 0,
    height: 0,
    isShowing: false,
    isFocus: false,
  }]
};
const mutations = {
  WINDOWSHOW(state, index, isShowing) {
    state.windows[index].isShowing = isShowing;
  }
};
const actions = {
  windowShow({ commit, state }, index, isShow) {
    if (state.windows[index].isShowing == isShow) {
      return;
    }
    commit("WINDOWSHOW", index, isShow);
  }
};
const getters = {

};

export default {
  state,
  mutations,
  actions,
  getters,
}
